﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Collections.ObjectModel;

namespace PizzaLunch
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        void AppStartup(object sender, StartupEventArgs args)
        {
            MainControl.Init();
            if (MainControl.AllAcount.Count == 0)
            {
                MainControl.Paused = true;
                Login logWindow = new Login();
                logWindow.ShowDialog();
                MainControl.Paused = false;
            }
            if (MainControl.AllAcount.Count > 0)
            {
                MainWindow mainWindow = new MainWindow();
                mainWindow.Show();
            }
        }
    }
}
